
export default {

  userInfo:state=>state.user.userInfo,
  pathTitles:state=>{
    return function(path){

      let titles = [];
      state.common.leftMenus.forEach(((first) => {
        first.children.forEach((value)=>{
          if (('/'+ value.path) === path){
            titles[0] = first.name;
            titles[1] = value.name;
          }
        });
      }));
      return titles;

    }
  },
  leftMenus:state=>state.common.leftMenus
}
